<?php

namespace app\admin\model\wechat;

use think\Model;


class Articles extends Model
{

    // 表名
    protected $name = 'wechat_articles';

    // 获取文案
    public function getCopyWriting(){
        $url = "https://apis.tianapi.com/pyqwenan/index?key=ff31abc1ab5648af1d9f223d03876466";
       $json = curl_weixin($url);
        $arr  = json_decode($json,true);

       return $arr['result']['content'];
    }

}
